<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    //定义json
    var json = {
        "name":"zhangsan",
        "age":23,
        "addr":["北京","廊坊","天津"]
    };
    alert(json.addr)
    //json数据和java对象的转换
</script>
</body>
</html>